package com.troy.resover;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @Description
 * @Author: zhangh
 * @Date: 2020/12/22 16:10
 */
@RestControllerAdvice
@Slf4j
public class ResoverController {

    @ExceptionHandler
    public void handler(Exception e){
      log.error(e.getMessage());
    }
}
    